package com.Eastiy.EXO.View;

import android.content.Context;
import android.os.Handler;
import android.view.View;
import android.widget.LinearLayout;
import java.util.Date;

public class TopBar {
    public static Context context;

    /* renamed from: H */
    private static int m42H() {
        return context.getResources().getDisplayMetrics().heightPixels;
    }

    /* renamed from: W */
    private static int m43W() {
        return context.getResources().getDisplayMetrics().widthPixels;
    }

    public static void show(Context context2, String str) {
        context = context2;
        NewView newView = new NewView(context2, new Integer(m43W()), new Integer((int) (((double) m42H()) * 0.15d)), "CC", new Integer(1), 2, (Object) null, (Object) null, (View.OnClickListener) null);
        NewView newView2 = new NewView(context2, new Integer((int) (((double) m43W()) * 0.35d)), new Integer((int) (((double) m42H()) * 0.12d)), "CC", new Integer(0), 1, "#ffffff", new Integer(10), (View.OnClickListener) null);
        NewView newView3 = new NewView(context2, new Integer((int) (((double) m43W()) * 0.3d)), new Integer((int) (((double) m42H()) * 0.1d)), "LC", new Integer(0), 2, (Object) null, (Object) null, (View.OnClickListener) null);
        Context context3 = context2;
        NewView newView4 = new NewView(context3, new Integer((int) (((double) m42H()) * 0.06d)), new Integer((int) (((double) m42H()) * 0.06d)), "RC", new Integer(1), 1, new String[]{"#6190e8", "#a7bfe8", "RT"}, new Integer(360), (View.OnClickListener) null);
        Context context4 = context2;
        NewView newView5 = new NewView(context4, new Integer((int) (((double) m42H()) * 0.04d)), new Integer((int) (((double) m42H()) * 0.04d)), "LC", new Integer(1), 1, new String[]{"#a7bfe8", "#6190e8", "RT"}, new Integer(360), (View.OnClickListener) null);
        NewView newView6 = new NewView(context2, new Integer((int) (((double) m42H()) * 0.02d)), new Integer((int) (((double) m42H()) * 0.02d)), "CC", new Integer(1), 1, "#ffffff", new Integer(360), (View.OnClickListener) null);
        Date date = new Date();
        NewText newText = new NewText(context2, ASUI.FontColor(new StringBuffer().append(new StringBuffer().append(new StringBuffer().append("§l").append(date.getHours()).toString()).append(":").toString()).append(date.getMinutes()).toString()), "RT", 10, "#e9e9e9");
        newText.setLayoutParams(new LinearLayout.LayoutParams((int) (((double) m42H()) * 0.08d), (int) (((double) m42H()) * 0.07d)));
        NewText newText2 = new NewText(context2, ASUI.FontColor(new StringBuffer().append(" §l§r").append(str).toString()), "RT", 12, "#000000");
        newText2.setPadding(2, 2, 2, 2);
        newView2.setElevation((float) 20);
        newView2.setTranslationY((float) -12);
        newView.addView(newView2);
        newView2.addView(newView3);
        newView2.addView(newText);
        newView3.addView(newView4);
        newView3.addView(newText2);
        newView4.addView(newView5);
        newView5.addView(newView6);
        ASUI.UIPlumb(newView, -100, 0, 300, (Object) null);
        ASUI.UIFadein(newView2, 0, 100, 300);
        NewCDV newCDV = new NewCDV(newView, new Integer((int) (((double) m43W()) * 0.35d)), new Integer((int) (((double) m42H()) * 0.15d)), false, true, false, "CT", "In", 0, (int) (((double) m42H()) * 0.12d));
        new Handler().postDelayed(new Runnable(newView, newView2) {
            private final NewView val$ttl;
            private final NewView val$ttl2;

            {
                this.val$ttl = r1;
                this.val$ttl2 = r2;
            }

            @Override
            public void run() {
                ASUI.UIPlumb(this.val$ttl, 0, -100, 300, (Object) null);
                ASUI.UIFadein(this.val$ttl2, 100, 0, 300);
            }
        }, (long) 3700);
        new Handler().postDelayed(new Runnable(newCDV) {
            private final NewCDV val$ttp;

            {
                this.val$ttp = r1;
            }

            @Override
            public void run() {
                this.val$ttp.dismiss();
            }
        }, (long) 4000);
    }
}
